﻿CREATE TABLE [dbo].[tblReturnDetail] (
    [RMAReturnID]    int     NOT NULL,
    [Qty]            int      NOT NULL,
    [OrderDetailID]      INT           NULL,
    [ReturnDetailID] INT           IDENTITY (1, 1) NOT NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines the item details for a return.  Record gets created the same time a RMAReturn
record is created.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblReturnDetail';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The quantity of the item being returned', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblReturnDetail',
	@level2type = N'COLUMN', @level2name = N'Qty';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Unique id', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblReturnDetail',
	@level2type = N'COLUMN', @level2name = N'ReturnDetailID';

